home *** CD-ROM | disk | FTP | other *** search
- This directory contains the following utilities that perform operations on
- view files:
-
- ViewDump.c: Prints the contents of a view file.
- viewconv.c: Converts a view from ASCII to binary or vice versa. Also
- converts pre-8.0 dynamics to the current format.
- tx2vt.c: Converts text objects (VOtx) to vector text objects (VOvt).
- vt2tx.c: Converts vector text objects (VOvt) to hardware text objects (VOtx).
- SetInputFlag.c: Sets the REDRAW_ON_UPDATE flag to YES for all input objects.
-
- The utilities are furnished as source code. See the descriptions below for
- instructions on how to build and use each utility.
-
- ---------------------------------------------------------------------
-
- Copy the executable to <dataviews>\bin and execute it using:
-
- (utility-name) (appropriate parameters)
-
- ---------------------------------------------------------------------
-
- ViewDump.c: Prints the contents of a view file.
-
- TO BUILD: nmake viewdump.exe
-
- SYNOPSIS: viewdump <viewfile>
-
- To run ViewDump.c under Windows NT:
-
- 1. Open an MS-DOS command prompt.
-
- 2. Type: viewdump <view_file>
-
- The results are sent to stdout.
-
- DESCRIPTION: This program examines a view file and prints out certain
- content information. The output is divided into two sections, one on the
- data sources and one on the drawing object. The data source section lists
- information about each data source and data source variable. The drawing
- object section lists information about certain objects and their subobjects.
- The following kinds of objects are described:
-
- drawings
- subdrawings
- graphs
- named objects
- dynamic objects (color objects and dynamic objects)
-
- EXAMPLE: viewdump view1.v
-
- ---------------------------------------------------------------
-
- viewconv.c: Converts a view from ASCII to binary or vice versa. Also converts
- pre-8.0 dynamics to the current format.
-
- TO BUILD: nmake viewconv.exe
-
- SYNOPSIS: viewconv <save format> <input view> <output view>
- [<searchpath>]
-
- DESCRIPTION: The first argument determines which format the input view is
- converted to.
-
- The available options are:
-
- a Save as an ASCII view file
- b Save as a Binary view file
- d Convert pre-8.0 dynamics
-
- Valid combinations are:
-
- a save ASCII, do not convert dynamics
- b save Binary, do not convert dynamics
- ad save ASCII, convert dynamics
- bd save Binary, convert dynamics
- d save Binary, convert dynamics
-
- If the view contains graphs, the search path parameter must include the
- directory that contains dispform.stb or its equivalent.
-
- The <input view> and <output view> can be the same. However, this should be
- done with care since the view could be lost if a disk i/o problem occurs.
-
- EXAMPLE: viewconv ad in.v out.v
-
- ---------------------------------------------------------------
-
- tx2vt.c: Converts text objects (VOtx) to vector text objects (VOvt).
-
- TO BUILD: nmake tx2vt.exe
-
- SYNOPSIS: tx2vt <device-string> <viewfile-source> <viewfile-destination>
- [<fontfile>] {[<fontheight> <fontwidth>] [<scale>]}
-
- DESCRIPTION: Converts all hardware text objects in a viewfile to software-
- generated vector texts. The regular roman.vf font is used unless otherwise
- specified and sizes are scaled to match the original hardware text as
- closely as possible. The utility correctly converts all hardware text in
- included subdrawings; hardware text in referenced subdrawings is *not*
- converted. Preserves any dynamics associated with the hardware text object.
-
- EXAMPLE: tx2vt w in.v out.v gothic.vf
-
- ---------------------------------------------------------------
-
- vt2tx.c: Converts vector text objects (VOvt) to hardware text objects (VOtx).
-
- TO BUILD: nmake vt2tx.exe
-
- SYNOPSIS: vt2tx <device-string> <viewfile-source> <viewfile-destination>
- [<fontsize>]
-
- DESCRIPTION: Converts all vector text fonts in a viewfile to hardware text
- fonts. If the user specifies a fontsize (1,2,3, or 4) then the program will
- set the hardware font to that size. If no fontsize is specified, then the
- program uses the largest font that will fit in the same area when the view
- is drawn to the full screen.
-
- Once the changes are made the user should be able to go into DV-Draw and
- make any additional changes if necessary. The utility will correctly convert
- all vector text objects in included subdrawings; referenced subdrawings will
- be left as is.
-
- EXAMPLE: vt2tx w:=600x500+0+0 in.v out.v 2
- ---------------------------------------------------------------
-
- SetInputFlag.c: Sets the REDRAW_ON_UPDATE flag to YES for all input objects in
- the specified view.
-
- TO BUILD: nmake setinputflag.exe
-
- SYNOPSIS: setinputflag <viewfile> <viewfile> ... <viewfile>
-
- DESCRIPTION: Sets the REDRAW_ON_UPDATE flag to YES for all input objects in
- the specified view. Does not change the flag on any input objects that are
- widget-based. For all affected input objects, also changes the flag for all
- embedded input objects.
-
- EXAMPLE: setinputflag view1.v view2.v view3.v
-
-
-
-
-
-
-
-